<!--
 * @FilePath     : /study_code/layui/13-2-1.html
 * @Description  : table options elem
 * @Date         : 2025-04-07 17:15:21
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-07 17:34:17
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
  </head>
  <body>
    <table id="demo" lay-filter="test"></table>

    <script src="/layui/dist/layui.js"></script>
    <script src="/layui/table/common.js"></script>
    <script>
      var table = layui.table

      table.render({
        /**
         * @brief: 指定原始 table 容器的选择器或 DOM
         * @value {string | HTMLElement} 选择器 | DOM元素对象
         * 示例：'#demo'; document.getElementById('#demo')
         */
        elem: '#demo',

        // 见后面详细说明中
        cols: cols,

        /*
        data
        使用静态数据
        来源：./table/1321.js
        */
        data: tableData,
      })
    </script>
  </body>
</html>
